<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>插值原始HTML</title>
</head>
<body>

<div id="app">
    <p>{{rawHtml}}</p>
    <p><span v-html="rawHtml"></span></p>
</div>

<script src="../js/vue.js"></script>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            rawHtml: '<span style="color: red">红色的文本</span>'
        }
    })
</script>
</body>
</html>